package com.qiang.test13;

import java.io.FileOutputStream;
import java.io.IOException;

public class Demo05 {
    public static void main(String[] args) {
        FileOutputStream fs = null;
        try {
            fs = new FileOutputStream("lianxi\\qq.txt");
            fs.write(100);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fs != null) {
                try {
                    fs.close();
                    fs = null;
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }

    }
}

